using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BUS;
using DAL;
using Entities;
using Utility;
public partial class admin_ThemKhachHang : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_them_Click(object sender, EventArgs e)
    {
        try
        {
            tbKhachHang khachhang = new tbKhachHang();
            khachhang.TenKH = txt_tenkh.Text;
            khachhang.TaiKhoan = txt_TaiKhoan.Text;
            khachhang.MatKhau = txt_matkhau.Text;
            khachhang.SoDT = txt_dienthoai.Text;
            khachhang.Email = txt_Email.Text;
            khachhang.DiaChi = txt_diachi.Text;

            tbKhachHangBUS.Insert(khachhang);
        }
        catch (Exception ex)
        {
        }
        Response.Redirect("~/admin/DanhSachKhachHang.aspx");

    }
}
